home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
serial
/
callback.001
/
callback~
/
callback
/
lib
/
dgroup
/
lookgroup.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-18
|
376b
|
19 lines
#include "dgroup.p"
unsigned lookgroup(char *group)
{
int
index;
for (index = 0; index < ndgroupnames; index++)
{
if (!strcmp(group, dgroupvector[index]))/* names match ? */
return (index); /* then return its index */
}
log(log_off, "lookgroup(): Can't find group %s", group);
parse_error();
return (index); /* group not found */
}